import http from '@/utils/http';
/**
 *
 * @param {*} distributionSite 1 为首页（默认值）2 为商品分类页
 * @returns
 */
export const getHomeBanner = (distributionSite = 1) => {
  return http({
    url: '/home/banner',
    data: {
      distributionSite,
    },
  });
};

export const getCategoryMutli = () => {
  return http({ url: '/home/category/mutli' });
};

export const getHotMutli = () => {
  return http({ url: '/home/hot/mutli' });
};

export const getHomeNew = () => {
  return http({ url: '/home/new' });
};

export const getGoodsGuessLike = (data) => {
  return http({ url: '/home/goods/guessLike', data });
};

/**
 * 人气推荐
 * @param {*} url 发送的请求url
 * @param {*} data 发送的请求data
 */
export const getHomeRecommend = (url, data) => {
  return http({
    url,
    data,
  });
};
